var Dog = require('./dog1.js');
var dog = new Dog('taidy', 10);
dog.on('bark', () => {
    console.log(dog.name + ' ' + 'barked,energy left' + ' ' + dog.energy);
})